
@echo on
cd /d %~dp0
set path=%~dp0;%path%;

set VERXSX=2.25
if not exist MaterialTest%VERXSX% (mkdir MaterialTest%VERXSX%)
if not exist MaterialTestFSS mkdir MaterialTestFSS



cd /d %~dp0
xcopy ..\BinZ\Release\*.dll  MaterialTest%VERXSX%   /y /q
xcopy ..\BinZ\Release\*.exe  MaterialTest%VERXSX% /y /q
xcopy ..\RunNdBob  MaterialTest%VERXSX%  /s /y  /q
xcopy VCRTZ  MaterialTest%VERXSX%   /s  /y  /q



cd /d %~dp0
cd /d MaterialTest%VERXSX%
call ../TGenClear.bat


echo Get Ver
cd /d %~dp0../MaterialTest
call version.bat
echo Version %major_ver%.%minor_ver%.%revsion_ver%.%revnum% %revset%
for /f "tokens=2 delims==" %%a in ('wmic path win32_operatingsystem get LocalDateTime /value') do (
  set t=%%a
)
set datetime=%t:~0,4%_%t:~4,2%%t:~6,2%_%t:~8,2%%t:~10,2%
set curversion=%major_ver%.%minor_ver%.%revsion_ver%.%revnum%
echo %datetime% %curversion%



cd /d %~dp0
del /s /q /f MaterialTest%curversion%.zip


cd /d %~dp0
echo ComrpessFolder MaterialTes%VERXSX%
7za a MaterialTest%curversion%.zip ./MaterialTest%VERXSX% -bb3 -r -mx1 
move MaterialTest%curversion%.zip MaterialTestFSS\MaterialTest%curversion%.zip


@ping 127.0.0.1 -n 5 >nul

